function request(options){
    var action = options['action'];
    var lastId = options['lastId'];
    var url = 'https://v1.wx91go.com/index.php?m=Api&c=WxMini&a=' + action;

    if (lastId) {
        url += '&last_id='+lastId
    }

    options['url'] = url;

    options.data = options.data || {};
    options.data['wecha_id'] = 'o2yi9jqHrPPVH3utdqoMRtKNMcCw';
    wx.request(options);
}

module.exports = {
    request:request
}